﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="MonthReport.aspx.cs" Inherits="Finance_MonthReport" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2><asp:Label ID="lblYear" runat="server"></asp:Label>年
<asp:Label ID="lblMonth" runat="server"></asp:Label>月详细报表</h2>
<asp:Repeater ID="rptMonthReport" runat="server">
<HeaderTemplate>
<table class="normal">
    <tr>
        <th>编号</th>
        <th>代理</th>
        <th>客户</th>
        <th>产品名</th>
        <th>投放日期</th>
        <th>应收</th>
        <th>实收</th>
        <th>应付</th>
        <th>实付</th>
        <th>应得利润</th>
        <th>实得利润</th>
    </tr>
</HeaderTemplate>
<ItemTemplate>
    <tr>
        <td><a href='<%# Eval("Id", "~/BalanceTable.aspx?id={0}") %>' title="查看收支表" 
            runat="server"><%# Eval("Number") %></a></td>
        <td><%# Eval("AgentName") %></td>
        <td><%# Eval("CustomerName") %></td>
        <td><%# Eval("ProductName") %></td>
        <td><%# Eval("StartDate", "{0:yyyy-M-d}") +"~"+ Eval("EndDate", "{0:yyyy-M-d}") %></td>
        <td><%# Formater.FormatMoney(Eval("Income")) %></td>
        <td><%# Formater.FormatMoney(Eval("RealIncome")) %></td>
        <td><%# Formater.FormatMoney(Eval("Payout")) %></td>
        <td><%# Formater.FormatMoney(Eval("RealPayout")) %></td>
        <td><%# Formater.FormatMoney((decimal)Eval("Income") - (decimal)Eval("Payout"))%></td>
        <td><%# Formater.FormatMoney((decimal)Eval("RealIncome") - (decimal)Eval("RealPayout"))%></td>
    </tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</asp:Content>